#define _CRT_SECURE_NO_WARNINGS  1
#include<stdio.h>
int main()
{
	int arr[] = {8,5,7,4,2,1,3,6,0,9 };
	int sz = sizeof(arr) / sizeof(arr[0]);

	int i = 0;
	
	for (i; i < sz-1;i++)
	{
		int m = 0;
		for (m;m<sz-1-i;m++)
		{
			if (arr[m] > arr[m + 1])
			{
				int c = 0;
				c = arr[m];
				arr[m] = arr[m + 1];
				arr[m+1] = c;
			}
		}
	}
	int n = 0;
	for (n; n < sz ; n++)
	{
		printf("%d ", arr[n]);
	}
	return 0;
}